//
//  NSError+Category.h
//  Community
//
//  Created by xtjun on 2023/7/4.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface NSError (Category)


+ (instancetype)errorWithCode:(NSInteger)code;
+ (instancetype)errorWithCode:(NSInteger)code errorReason:(nullable NSString *)errorReason;
+ (instancetype)errorWithCode:(NSInteger)code userInfo:(nullable NSDictionary *)userInfo;
- (nullable NSDictionary *)getAFNOperationFailingURLResponseData;

@end

NS_ASSUME_NONNULL_END
